package com.icbc.digitalwallet.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @PackgeName: com.icbc.digitalwallet.common.config
 * @ClassName: ResponseEnum
 * @Author: tx
 * Date: 2021/7/17 18:45
 * project name: digitalwallet
 * @Version:
 * @Description:
 */
@Getter
@ToString
@AllArgsConstructor
public enum ResponseEnum {

    SUCCESS(0,"成功"),
    ERROR(-1,"服务器内部错误"),
    SERVLET_ERROR(-102, "servlet请求异常"),
    TRANS_AMOUNT_EMPTY_ERROR(-201,"交易金额不能为空"),
    TRANS_OBJ_EMPTY_ERROR(-202,"交易账户不能为空"),
    TRANS_PAYPASSWORD_EMPTY_ERROR(-203,"交易密码不能为空"),
    TRANS_OBJ_NULL_ERROR(-204,"请输入正确的银行账号"),
    LOGIN_AUTH_ERROR(-211, "未登录"),
    CARD_NOT_ACTIVATE(-205, "请先将卡开立!"),
    CARD_IS_ACTIVATED(-206,"此开已经开立！"),
    PASSWORD_ERROR(-207,"支付密码错误"),
    RECHARGE_AMOUNT_ERROR(-208,"充值金额异常"),
    WITHDRAW_AMOUNT_ERROR(-209,"提现金额异常"),
    ACCOUNT_BALANCE_ERROR(-210,"银行卡账户余额不足"),
    WITHDRAW_CARD_AMOUNT_ERROR(-212, "卡式钱包余额为0"),
    WITHDRAW_CARD_TIMES_ERROR(-213, "今日充值次数已达上限"),
    ACCOUNT_BANK_BALANCE_ERROR(-214, "数字钱包余额不足"),
    ACCOUNT_UPPER_ERROR(-215, "充值金额达到上限"),
    CARD_ACCOUNT_UPPER_ERROR(-216, "卡式软钱包余额达到上限")
    ;


    private Integer code;
    private String message;
}
